cmake_minimum_required(VERSION 3.1.0)
project(MNIST_GUI)
find_package(Qt5 REQUIRED COMPONENTS Widgets)
find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS} ${Qt5Widgets_INCLUDE_DIRS} "../include")
link_libraries(${Qt5Widgets_LIBRARIES} ${OpenCV_LIBRARIES})
if(CMAKE_HOST_WIN32)
add_executable(mnist_gui WIN32 Canvas.cpp MainWindow.cpp pch.cpp main.cpp)
else()
add_executable(mnist_gui Canvas.cpp MainWindow.cpp pch.cpp main.cpp)
endif()
